using System;
using System.Threading;

namespace SuiHan.Commons.Util {
    public static class ThreadUtils {
        public static void HoldOn() {
            new Thread(() => {
                while (true) {
                    try {
                        Thread.Sleep(1000);
                    } catch (Exception e) {
                        Console.WriteLine("thread hold error {0}", e);
                    }
                }
            }) { Name = "holder-thread" }.Start();
        }
    }
}
